import { createRouter, createWebHashHistory, RouteRecordRaw } from 'vue-router'
import Login from '@/login/login.vue'
import Welcome from '@/login/welcome.vue'
import register from'@/register/register.vue'
import Dashboard from '@/login/dashboard.vue'
import BaseAdd from '@/login/BaseAdd.vue'
import BaseDelete from '@/login/BaseDelete.vue'
import BaseEdit from '@/login/BaseEdit.vue'
import ClassOpen from '@/login/ClassOpen.vue'
const routes: Array<RouteRecordRaw> = [
  {
    path: '/',
    component: Login
  },
  {
    path: '/register',
    component: register
  },
  {
    path: '/welcome',
    component: Welcome  
  },
  {
    path: '/dashboard',
    component: Dashboard
  },

  {
    path: '/BaseAdd',
    component: BaseAdd
  },

  {
    path: '/BaseDelete',
    component: BaseDelete
  },

  {
    path: '/BaseEdit',
    component: BaseEdit
  },
  {
    path: '/ClassOpen',
    component: ClassOpen
  },
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router